FROM anapsix/alpine-java:8_server-jre_unlimited
MAINTAINER pnoker <pnokers.icloud.com>

RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
    && mkdir -p /dc3-device/dc3-manager

WORKDIR /dc3-device/dc3-manager

ADD ./target/dc3-manager.jar ./

EXPOSE 8600

CMD java -Djava.security.egd=file:/dev/./urandom -jar dc3-manager.jar
